package com.twu.biblioteca;

import java.util.List;

import static com.google.common.collect.Lists.newArrayList;

public class MainMenu {
    private static final List<String> MENU_OPTIONS = newArrayList("Enter 1 for List Books:",
            "Enter 2 to checkout a book:");
    ConsolePrinter consolePrinter;

    public MainMenu(ConsolePrinter consolePrinter){
        this.consolePrinter = consolePrinter;
    }

    public void display(){
        consolePrinter.print(MENU_OPTIONS);
    }

    public void validateInput(int input) {
        if(input != 1){
            consolePrinter.print("Select a valid option!");
        }
    }
}
